d47007e639fb3444790c531594f3996e75b3969a,source/com/intellij/openapi/roots/ui/configuration/ModuleEditor.java,ModuleEditor,getHelpTopic,#,489

Before Change


    if (myTabbedPane == null || myEditors.isEmpty()) {
      return null;
    }
    final ModuleConfigurationEditor moduleElementsEditor = myEditors.get(myTabbedPane.getSelectedIndex());
    return moduleElementsEditor.getHelpTopic();
  }

After Change


    if (myTabbedPane == null || myEditors.isEmpty()) {
      return null;
    }
    final int selectedIdx = myTabbedPane.getSelectedIndex();
    if (selectedIdx == -1) {
      return null;
    }
    final ModuleConfigurationEditor moduleElementsEditor = myEditors.get(selectedIdx);